
import { createBrowserRouter } from "react-router-dom";

const routers=createBrowserRouter([
    {
 path:'/',
 lazy:async()=>{
    const {default:Home}=await import('../props/Home/index')
    return{
        element:<Home></Home>
    }
 }
    },
    {
        path:'/login',
        lazy:async()=>{
           const {default:Login}=await import('../props/Login/index')
           return{
               element:<Login></Login>
           }
        }
    },
   
])
export default routers